// LeftView.h : interface of the CLeftView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LEFTVIEW_H__B8DB7E92_BE6D_4145_8065_3BAC64637C70__INCLUDED_)
#define AFX_LEFTVIEW_H__B8DB7E92_BE6D_4145_8065_3BAC64637C70__INCLUDED_

#include "DirTreeCtrl.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define ID_TREECTRL 1002

//depricated
class CTChartGridDoc;
class CLeftView : public CView
{
	CDirTreeCtrl m_dirTree;
	CString      m_filename;
public:
	void SetExtEnable(bool bExtEnable)        {m_dirTree.SetExtEnable(bExtEnable);}
	BOOL GetExtEnable()                       {return m_dirTree.GetExtEnable();}
	CString GetFileName()const                {return m_filename;}
	void MakeFileVisible(CString sFileName);
	CTChartGridDoc* GetDocument();




	virtual ~CLeftView();


	



	//{{AFX_VIRTUAL(CLeftView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
protected: // create from serialization only
	CLeftView();
	DECLARE_DYNCREATE(CLeftView)

	//{{AFX_MSG(CLeftView)
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRClick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnOpenGcell();
	afx_msg void OnOpenGraph();
	afx_msg void OnOpenDir();
	afx_msg void OnFilePrintPreview();
	afx_msg void OnFileExport();

	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnCopyDir();
	afx_msg void OnUpdateCopyDir(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in LeftView.cpp
inline CTChartGridDoc* CLeftView::GetDocument()
   { return (CTChartGridDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LEFTVIEW_H__B8DB7E92_BE6D_4145_8065_3BAC64637C70__INCLUDED_)
